﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Register TagPrefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SearchEventSenderUserControl.ascx.cs"
    Inherits="JM.JCY.SharePointComponent.Event.SearchEventSender.SearchEventSenderUserControl" %>
<script type="text/javascript">

    
    function RedirectToInvestigateDetails(sender, ID) {

        sender.href = "EditEvent.aspx?EventId=" + ID;
    }


    function RedirectToCreateEvent(sender) {
        sender.href = "CreateEvent.aspx";
        return false;
    }
    function RedirectToHome(sender) {
        sender.href = "/pages/home.aspx";
        return false;
    }

</script>
<style type="text/css">
    .ms-input /* Set textbox's width of dtEffDateFrom and dtEffDateTo */
    {
        width: 75px;
    }
    
    table.form td.nopaddingleft
    {
        padding-left: 0px;
        padding-top: 0px;
        vertical-align: top;
        font-family: Calibri;
        font-size: 12px;
    }
</style>
<div>
    <table class="main">
        <tr>
            <td valign="top" width="75%" runat="server" id="tdContent">
                <table class="content" width="98%">
                    <tr>
                        <td style="padding: 5px;">
                            <table width="100%" class="title">
                                <tr>
                                    <td width="60%">
                                        <h2 class="title">     <img src="/_layouts/JM.JCY.Resource/images/calendar.png" width="28" />
                                            管理我的工作计划
                                        </h2>
                                    </td>
                                     <td align="right">
                                     <img src="/_layouts/JM.JCY.Resource/images/plus.png" width="12" />
                                        <asp:LinkButton ID="lkbCreateEvent" runat="server" Text="创建工作计划" OnClientClick="RedirectToCreateEvent(this)">
                                        </asp:LinkButton>|<img src="/_layouts/JM.JCY.Resource/images/back_Link.png" width="12" />
                                            <asp:LinkButton ID="lkbBack" runat="server" Text="返回" OnClientClick="RedirectToHome(this)">
                                        </asp:LinkButton>
                                    </td>
                                </tr>
                            </table>
                            <br />
                            <hr />
                            <table width="100%" class="form">
                                <tr>
                                    <td>
                                        状态
                                    </td>
                                    <td>
                                        :
                                    </td>
                                    <td>
                                        <asp:RadioButtonList ID="RadioButtonList1" runat="server" AutoPostBack="True" 
                                            onselectedindexchanged="RadioButtonList1_SelectedIndexChanged" 
                                            RepeatDirection="Horizontal">
                                            <asp:ListItem>已完成</asp:ListItem>
                                            <asp:ListItem Selected="True">未完成</asp:ListItem>
                                        </asp:RadioButtonList>
                                    </td>
                                </tr>
                
                            
 
                            </table>
                            <table width="100%" class="list">
                                <tr>
                                    <td>
                                        <div id="content">
                                            <asp:gridview id="gvBC" runat="server" autogeneratecolumns="False" borderwidth="0px"
                                                gridlines="Horizontal" cssclass="altrowstablebc" 
                                                OnRowDataBound="gvBC_DataBound"  Width="100%" EnableModelValidation="True">
                                                <columns>
                                                                                        <asp:TemplateField HeaderText="编号" HeaderStyle-Width="15%">
                                                <ItemTemplate>
                                                    <asp:LinkButton ID="SubjectId" runat="server" Text='<%# Eval("Subject") %>' OnClientClick='<%# String.Format("RedirectToInvestigateDetails({0},{1})","this",Eval("ID")) %>'>
                                                    </asp:LinkButton>
                                                </ItemTemplate>
                                        
                                            </asp:TemplateField>

                                                    <asp:BoundField DataField="EventContent" HeaderText="具体事项" />
                                                    <asp:BoundField DataField="EndDate" HeaderText="到期日期" DataFormatString="{0:yyyy-MM-dd}"/>
                                                    <asp:BoundField DataField="Status" HeaderText="状态" />
                                                    <asp:BoundField DataField="OverDate" HeaderText="是否过期" Visible="false"/>
                                                </columns>
                                            </asp:gridview>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                            <br />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</div>
